#Boa:Dialog:InserirEditarAgendamento

import wx
import wx.lib.masked.timectrl
import wx.lib.masked.textctrl

def create(parent):
    return InserirEditarAgendamento(parent)

[wxID_INSERIREDITARAGENDAMENTO, 
 wxID_INSERIREDITARAGENDAMENTOBITMAPBUTTONABRIRCALENDARIO, 
 wxID_INSERIREDITARAGENDAMENTOBITMAPBUTTONDISPONIBILIDADE, 
 wxID_INSERIREDITARAGENDAMENTOCHECKLISTBOX1, 
 wxID_INSERIREDITARAGENDAMENTOCHOICEDURACAO, 
 wxID_INSERIREDITARAGENDAMENTOCHOICEHORARIOSDISP, 
 wxID_INSERIREDITARAGENDAMENTOCOMBOBOXCLIENTE, 
 wxID_INSERIREDITARAGENDAMENTOCOMBOBOXFUNCIONARIO, 
 wxID_INSERIREDITARAGENDAMENTODATEPICKERCTRL1, 
 wxID_INSERIREDITARAGENDAMENTOSTATICBOX1, 
 wxID_INSERIREDITARAGENDAMENTOSTATICBOX2, 
 wxID_INSERIREDITARAGENDAMENTOSTATICBOX3, 
 wxID_INSERIREDITARAGENDAMENTOSTATICLINE1, 
 wxID_INSERIREDITARAGENDAMENTOSTATICLINE2, 
 wxID_INSERIREDITARAGENDAMENTOSTATICLINE3, 
 wxID_INSERIREDITARAGENDAMENTOSTATICTEXT1, 
 wxID_INSERIREDITARAGENDAMENTOSTATICTEXT10, 
 wxID_INSERIREDITARAGENDAMENTOSTATICTEXT2, 
 wxID_INSERIREDITARAGENDAMENTOSTATICTEXT3, 
 wxID_INSERIREDITARAGENDAMENTOSTATICTEXT4, 
 wxID_INSERIREDITARAGENDAMENTOSTATICTEXT5, 
 wxID_INSERIREDITARAGENDAMENTOSTATICTEXT6, 
 wxID_INSERIREDITARAGENDAMENTOSTATICTEXT7, 
 wxID_INSERIREDITARAGENDAMENTOSTATICTEXT8, 
 wxID_INSERIREDITARAGENDAMENTOSTATICTEXT9, 
 wxID_INSERIREDITARAGENDAMENTOSTATICTEXTNUMSELECIONADOS, 
 wxID_INSERIREDITARAGENDAMENTOTEXTCTRL1, 
 wxID_INSERIREDITARAGENDAMENTOTEXTCTRLFATPREVISTO, 
 wxID_INSERIREDITARAGENDAMENTOTIMECTRLHORARIOFINAL, 
 wxID_INSERIREDITARAGENDAMENTOTOOLBAR1, wxID_INSERIREDITARAGENDAMENTOWINDOW1, 
 wxID_INSERIREDITARAGENDAMENTOWINDOW2, 
] = [wx.NewId() for _init_ctrls in range(32)]

[wxID_INSERIREDITARAGENDAMENTOTOOLBAR1TOOLSCANCELAR, 
 wxID_INSERIREDITARAGENDAMENTOTOOLBAR1TOOLSSALVAR, 
] = [wx.NewId() for _init_coll_toolBar1_Tools in range(2)]

class InserirEditarAgendamento(wx.Dialog):
    def _init_coll_toolBar1_Tools(self, parent):
        # generated method, don't edit

        parent.DoAddTool(bitmap=wx.Bitmap(u"Img/disquete.gif",
              wx.BITMAP_TYPE_GIF),
              bmpDisabled=wx.Bitmap(u"Img/disquete disabled.gif",
              wx.BITMAP_TYPE_GIF),
              id=wxID_INSERIREDITARAGENDAMENTOTOOLBAR1TOOLSSALVAR,
              kind=wx.ITEM_NORMAL, label='', longHelp='', shortHelp=u'Salvar')
        parent.DoAddTool(bitmap=wx.Bitmap(u"Img/cancelar.gif",
              wx.BITMAP_TYPE_GIF),
              bmpDisabled=wx.Bitmap(u"Img/cancelar disabled.gif",
              wx.BITMAP_TYPE_GIF),
              id=wxID_INSERIREDITARAGENDAMENTOTOOLBAR1TOOLSCANCELAR,
              kind=wx.ITEM_NORMAL, label='', longHelp='',
              shortHelp=u'Cancelar')
        self.Bind(wx.EVT_TOOL, self.OnToolBar1ToolscancelarTool,
              id=wxID_INSERIREDITARAGENDAMENTOTOOLBAR1TOOLSCANCELAR)

        parent.Realize()

    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Dialog.__init__(self, id=wxID_INSERIREDITARAGENDAMENTO,
              name=u'InserirEditarAgendamento', parent=prnt, pos=wx.Point(412,
              102), size=wx.Size(767, 538), style=wx.DEFAULT_DIALOG_STYLE,
              title=u'Inserir/Editar Agendamento')
        self.SetClientSize(wx.Size(751, 500))
        self.SetBackgroundColour(wx.Colour(255, 255, 255))

        self.toolBar1 = wx.ToolBar(id=wxID_INSERIREDITARAGENDAMENTOTOOLBAR1,
              name='toolBar1', parent=self, pos=wx.Point(0, 0),
              size=wx.Size(751, 27), style=wx.TB_HORIZONTAL | wx.NO_BORDER)
        self.toolBar1.SetToolTipString(u'toolBar1')

        self.window1 = wx.Window(id=wxID_INSERIREDITARAGENDAMENTOWINDOW1,
              name='window1', parent=self, pos=wx.Point(8, 32),
              size=wx.Size(392, 168), style=0)

        self.staticText1 = wx.StaticText(id=wxID_INSERIREDITARAGENDAMENTOSTATICTEXT1,
              label=u'Cliente', name='staticText1', parent=self.window1,
              pos=wx.Point(24, 24), size=wx.Size(53, 18), style=0)
        self.staticText1.SetFont(wx.Font(11, wx.SWISS, wx.NORMAL, wx.BOLD,
              False, u'Tahoma'))

        self.staticText2 = wx.StaticText(id=wxID_INSERIREDITARAGENDAMENTOSTATICTEXT2,
              label=u'Funcion\xe1rio', name='staticText2', parent=self.window1,
              pos=wx.Point(24, 88), size=wx.Size(88, 18), style=0)
        self.staticText2.SetFont(wx.Font(11, wx.SWISS, wx.NORMAL, wx.BOLD,
              False, u'Tahoma'))

        self.staticBox1 = wx.StaticBox(id=wxID_INSERIREDITARAGENDAMENTOSTATICBOX1,
              label=u'Pessoas Envolvidas', name='staticBox1',
              parent=self.window1, pos=wx.Point(8, 0), size=wx.Size(376, 160),
              style=0)
        self.staticBox1.SetFont(wx.Font(8, wx.SWISS, wx.NORMAL, wx.NORMAL,
              False, u'Tahoma'))

        self.staticLine1 = wx.StaticLine(id=wxID_INSERIREDITARAGENDAMENTOSTATICLINE1,
              name='staticLine1', parent=self, pos=wx.Point(17, 208),
              size=wx.Size(375, 2), style=0)

        self.window2 = wx.Window(id=wxID_INSERIREDITARAGENDAMENTOWINDOW2,
              name='window2', parent=self, pos=wx.Point(8, 216),
              size=wx.Size(392, 168), style=0)

        self.staticBox2 = wx.StaticBox(id=wxID_INSERIREDITARAGENDAMENTOSTATICBOX2,
              label=u'Data e Hora', name='staticBox2', parent=self.window2,
              pos=wx.Point(8, 0), size=wx.Size(376, 160), style=0)

        self.staticText3 = wx.StaticText(id=wxID_INSERIREDITARAGENDAMENTOSTATICTEXT3,
              label=u'Data', name='staticText3', parent=self.window2,
              pos=wx.Point(40, 24), size=wx.Size(35, 18), style=0)
        self.staticText3.SetFont(wx.Font(11, wx.SWISS, wx.NORMAL, wx.BOLD,
              False, u'Tahoma'))

        self.datePickerCtrl1 = wx.DatePickerCtrl(id=wxID_INSERIREDITARAGENDAMENTODATEPICKERCTRL1,
              name='datePickerCtrl1', parent=self.window2, pos=wx.Point(40, 40),
              size=wx.Size(96, 24), style=wx.DP_SHOWCENTURY)
        self.datePickerCtrl1.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL,
              False, u'Tahoma'))

        self.bitmapButtonAbrirCalendario = wx.BitmapButton(bitmap=wx.Bitmap(u"Img/MiniCalendario.png",
              wx.BITMAP_TYPE_PNG),
              id=wxID_INSERIREDITARAGENDAMENTOBITMAPBUTTONABRIRCALENDARIO,
              name=u'bitmapButtonAbrirCalendario', parent=self.window2,
              pos=wx.Point(24, 40), size=wx.Size(16, 16), style=wx.BU_AUTODRAW)
        self.bitmapButtonAbrirCalendario.SetHelpText(u'Abrir Calend\xe1rio')
        self.bitmapButtonAbrirCalendario.SetLabel(u'Abrir Calend\xe1rio')
        self.bitmapButtonAbrirCalendario.Bind(wx.EVT_BUTTON,
              self.OnBitmapButtonAbrirCalendarioButton,
              id=wxID_INSERIREDITARAGENDAMENTOBITMAPBUTTONABRIRCALENDARIO)

        self.staticText4 = wx.StaticText(id=wxID_INSERIREDITARAGENDAMENTOSTATICTEXT4,
              label=u'Hor\xe1rios Dispon\xedveis', name='staticText4',
              parent=self.window2, pos=wx.Point(192, 24), size=wx.Size(156, 18),
              style=0)
        self.staticText4.SetFont(wx.Font(11, wx.SWISS, wx.NORMAL, wx.BOLD,
              False, u'Tahoma'))

        self.choiceHorariosDisp = wx.Choice(choices=[],
              id=wxID_INSERIREDITARAGENDAMENTOCHOICEHORARIOSDISP,
              name=u'choiceHorariosDisp', parent=self.window2, pos=wx.Point(192,
              40), size=wx.Size(80, 24), style=0)
        self.choiceHorariosDisp.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL,
              wx.NORMAL, False, u'Tahoma'))

        self.staticText5 = wx.StaticText(id=wxID_INSERIREDITARAGENDAMENTOSTATICTEXT5,
              label=u'Dura\xe7\xe3o', name='staticText5', parent=self.window2,
              pos=wx.Point(40, 96), size=wx.Size(62, 18), style=0)
        self.staticText5.SetFont(wx.Font(11, wx.SWISS, wx.NORMAL, wx.BOLD,
              False, u'Tahoma'))

        self.choiceDuracao = wx.Choice(choices=[],
              id=wxID_INSERIREDITARAGENDAMENTOCHOICEDURACAO,
              name=u'choiceDuracao', parent=self.window2, pos=wx.Point(40, 112),
              size=wx.Size(80, 24), style=0)
        self.choiceDuracao.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL,
              False, u'Tahoma'))

        self.staticText6 = wx.StaticText(id=wxID_INSERIREDITARAGENDAMENTOSTATICTEXT6,
              label=u'Hor\xe1rio Final Previsto', name='staticText6',
              parent=self.window2, pos=wx.Point(184, 88), size=wx.Size(135, 18),
              style=0)
        self.staticText6.SetFont(wx.Font(11, wx.SWISS, wx.NORMAL, wx.NORMAL,
              False, u'Tahoma'))

        self.staticLine2 = wx.StaticLine(id=wxID_INSERIREDITARAGENDAMENTOSTATICLINE2,
              name='staticLine2', parent=self, pos=wx.Point(8, 392),
              size=wx.Size(736, 2), style=0)

        self.staticBox3 = wx.StaticBox(id=wxID_INSERIREDITARAGENDAMENTOSTATICBOX3,
              label=u'', name='staticBox3', parent=self, pos=wx.Point(416, 32),
              size=wx.Size(328, 352), style=0)

        self.staticLine3 = wx.StaticLine(id=wxID_INSERIREDITARAGENDAMENTOSTATICLINE3,
              name='staticLine3', parent=self, pos=wx.Point(408, 40),
              size=wx.Size(1, 344), style=0)

        self.staticText7 = wx.StaticText(id=wxID_INSERIREDITARAGENDAMENTOSTATICTEXT7,
              label=u'Servi\xe7os Dispon\xedveis', name='staticText7',
              parent=self, pos=wx.Point(424, 48), size=wx.Size(156, 18),
              style=0)
        self.staticText7.SetFont(wx.Font(11, wx.SWISS, wx.NORMAL, wx.BOLD,
              False, u'Tahoma'))

        self.checkListBox1 = wx.CheckListBox(choices=[],
              id=wxID_INSERIREDITARAGENDAMENTOCHECKLISTBOX1,
              name='checkListBox1', parent=self, pos=wx.Point(424, 72),
              size=wx.Size(312, 248), style=0)
        self.checkListBox1.SetFont(wx.Font(12, wx.SWISS, wx.NORMAL, wx.NORMAL,
              False, u'Tahoma'))

        self.staticText8 = wx.StaticText(id=wxID_INSERIREDITARAGENDAMENTOSTATICTEXT8,
              label=u'Faturamento Previsto:', name='staticText8', parent=self,
              pos=wx.Point(456, 336), size=wx.Size(127, 16), style=0)
        self.staticText8.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL,
              False, u'Tahoma'))

        self.textCtrlFatPrevisto = wx.TextCtrl(id=wxID_INSERIREDITARAGENDAMENTOTEXTCTRLFATPREVISTO,
              name=u'textCtrlFatPrevisto', parent=self, pos=wx.Point(592, 336),
              size=wx.Size(52, 24), style=0, value=u'0,00')
        self.textCtrlFatPrevisto.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL,
              wx.NORMAL, False, u'Tahoma'))
        self.textCtrlFatPrevisto.Enable(False)

        self.staticText9 = wx.StaticText(id=wxID_INSERIREDITARAGENDAMENTOSTATICTEXT9,
              label=u'Selecionados', name='staticText9', parent=self,
              pos=wx.Point(656, 56), size=wx.Size(63, 13), style=0)

        self.staticTextNumSelecionados = wx.StaticText(id=wxID_INSERIREDITARAGENDAMENTOSTATICTEXTNUMSELECIONADOS,
              label=u'0', name=u'staticTextNumSelecionados', parent=self,
              pos=wx.Point(632, 56), size=wx.Size(16, 13), style=0)

        self.staticText10 = wx.StaticText(id=wxID_INSERIREDITARAGENDAMENTOSTATICTEXT10,
              label=u'Observa\xe7\xf5es', name='staticText10', parent=self,
              pos=wx.Point(16, 400), size=wx.Size(84, 16), style=0)
        self.staticText10.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.BOLD,
              False, u'Tahoma'))

        self.textCtrl1 = wx.TextCtrl(id=wxID_INSERIREDITARAGENDAMENTOTEXTCTRL1,
              name='textCtrl1', parent=self, pos=wx.Point(16, 416),
              size=wx.Size(720, 72),
              style=wx.TE_LINEWRAP | wx.TE_MULTILINE | wx.TE_WORDWRAP,
              value=u'')
        self.textCtrl1.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL,
              False, u'Tahoma'))

        self.comboBoxCliente = wx.ComboBox(choices=[],
              id=wxID_INSERIREDITARAGENDAMENTOCOMBOBOXCLIENTE,
              name=u'comboBoxCliente', parent=self.window1, pos=wx.Point(24,
              40), size=wx.Size(344, 24), style=0, value=u'')
        self.comboBoxCliente.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL, wx.NORMAL,
              False, u'Tahoma'))
        self.comboBoxCliente.SetLabel(u'')

        self.comboBoxFuncionario = wx.ComboBox(choices=[],
              id=wxID_INSERIREDITARAGENDAMENTOCOMBOBOXFUNCIONARIO,
              name=u'comboBoxFuncionario', parent=self.window1, pos=wx.Point(24,
              104), size=wx.Size(344, 24), style=0, value=u'')
        self.comboBoxFuncionario.SetFont(wx.Font(10, wx.SWISS, wx.NORMAL,
              wx.NORMAL, False, u'Tahoma'))
        self.comboBoxFuncionario.SetLabel(u'')

        self.timeCtrlHorarioFinal = wx.lib.masked.timectrl.TimeCtrl(display_seconds=True,
              fmt24hr=True,
              id=wxID_INSERIREDITARAGENDAMENTOTIMECTRLHORARIOFINAL,
              name=u'timeCtrlHorarioFinal', oob_color=wx.NamedColour('Yellow'),
              parent=self.window2, pos=wx.Point(216, 112), size=wx.Size(43, 22),
              style=0, useFixedWidthFont=True, value='12:00:00 AM')
        self.timeCtrlHorarioFinal.SetFormat('24HHMM')
        self.timeCtrlHorarioFinal.Enable(False)

        self.bitmapButtonDisponibilidade = wx.BitmapButton(bitmap=wx.Bitmap(u"C:/Users/Matheus/Desktop/MVR/Cristina's Hair [OFICIAL]/Src/Apresentacao/Img/MiniRelogio.png",
              wx.BITMAP_TYPE_PNG),
              id=wxID_INSERIREDITARAGENDAMENTOBITMAPBUTTONDISPONIBILIDADE,
              name=u'bitmapButtonDisponibilidade', parent=self.window2,
              pos=wx.Point(176, 40), size=wx.Size(16, 16),
              style=wx.BU_AUTODRAW)

        self._init_coll_toolBar1_Tools(self.toolBar1)

    def __init__(self, parent):
        self._init_ctrls(parent)

#Botao abrir calendario
    def OnBitmapButtonAbrirCalendarioButton(self, event):
        from Dialog_Calendario import *
        frame = Calendario(self)
        frame.Centre()
        frame.ShowModal()

    def OnToolBar1ToolscancelarTool(self, event):
        self.Close()
